package com.example.yuanboot.common.anno;

import com.example.yuanboot.common.enums.config.DataHandlerEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 当前用户权限校验
 *
 * @author qingyan 2021-07-14
 */
@Target({ElementType.METHOD, ElementType.TYPE, ElementType.LOCAL_VARIABLE})
@Retention(RetentionPolicy.RUNTIME)
public @interface UserInterception {
    // 数据权限拦截器
    DataHandlerEnum level() default DataHandlerEnum.ONE;

    String conlum() default "";
}
